package com.ytb.categories;

import java.util.ArrayList;
import java.util.List;

/**
 * Represents 1 {@link XmlCategory} of the <b>categories.json</b> file.
 * It contains a <b>name</b> and a {@link List} of {@link XmlDescriptor}s.
 */
public class XmlCategory {
	private String name = null;
	private List<XmlDescriptor> descriptors = new ArrayList<XmlDescriptor>();
	
	public XmlCategory(String name, List<XmlDescriptor> descriptors) {
		this.name = name;
		this.descriptors = descriptors;
	}

	/**
	 * Get the <b>descriptors</b> attribute ({@link List} of {@link XmlDescriptor}s).
	 * @return The <b>descriptors</b> attribute.
	 */
	public List<XmlDescriptor> getDescriptors() {
		return descriptors;
	}

	/**
	 * Get the <b>name</b> attribute.
	 * @return The <b>name</b> attribute.
	 */
	public String getName() {
		return name;
	}
}
